<div class="row">
    <div class="span12 marginbottom20">
        <form method="post" action="<?php echo $this->url_edit . @$ads->ADS_ID; ?>"  enctype="multipart/form-data">
            <div class="table_head"><h6><i class="icon-list-alt"></i>
			<?php
			if(@$ads->ADS_ID > 0)
			{
				echo 'Thông tin '.@$tresource->RES_NAME;
				
			}
			else {
				echo 'Thêm mới '.@$tresource->RES_NAME;
			}
			?></h6></div>
            <div class="subcont">
                <ul class="details span10">
					<li><?php echo $this->atheme->group_select2('ads[ADS_CODE]', 'Vùng', '', 'required ',array('all-page'=>'Mọi trang','trang-chu'=>'Trang chủ','category'=>'Danh mục','detail'=>'Trang chi tiết'), @$ads->ADS_CODE, ''); ?></li>
					
					 
					 <li><?php echo $this->atheme->group_select2('ads[ADS_POSITION]', 'Vị trí', '', 'required ',array('left'=>'Menu trái','right'=>'Menu phải','top'=>'Top banner','mid'=>'Giữa','footer'=>'Footer'), @$ads->ADS_POSITION, ''); ?></li>
					  <li>	<?php echo $this->atheme->group_input2('ads[ADS_TITLE]', 'Tên gợi nhớ', '', 'span6', @$ads->ADS_TITLE, 'text', ''); ?></li>
					<li><div class="row-form">
    <div class="span3"><label for="myid_14">Code HTML: </label></div>
    <div class="span9">
        <textarea class="required span12" name="ads[ADS_HTML]" id="myid_14"  rows="10" cols="20"><?php echo @$ads->ADS_HTML;?></textarea>
    </div>
    <div class="clear"></div>
</div></li>
					  
					<li> <?php echo $this->atheme->group_select2('ads[ADS_STATUS]', 'Trạng thái', '', 'required ',array('1'=>'Hiện','0'=>'Ẩn'), @$ads->ADS_STATUS, ''); ?></li>
					<li> <?php echo $this->atheme->group_select2('ads[ADS_IS_SCROLL]', 'Di chuyển theo thanh cuộn:', '', 'required ',array('1'=>'Có','0'=>'Không'), @$ads->ADS_IS_SCROLL, ''); ?></li>
					
				 <li>	<?php echo $this->atheme->group_input2('ads[ADS_ORDER]', 'Thứ tự', '', 'span6', @$ads->ADS_ORDER, 'text', ''); ?></li>
				
                </ul>
                
                <ul class="span8">
                   <input type="submit" name="send" class="btn btn-primary" value="<?php
			if(@$ads->ADS_ID > 0)
			{
				echo 'Lưu';
				
			}
			else {
				echo 'Thêm mới';
			}
			?>"/>
			<a href="<?php echo $this->url_index;?>" class="btn">Trở ra</a>
                </ul>
                <br clear="both">

            </div>

        </form>
    </div>
</div>